package com.cos.lession70.services.impl;

import com.cos.lession70.dao.UserDao;
import com.cos.lession70.dao.impl.UserDaoImpl;
import com.cos.lession70.services.UserServices;

/**
 * @author: COS
 * @time: 2022/9/26 10:38
 * @description:
 */
public class UserServicesImpl implements UserServices {
    //以数据类型进行注入
    private UserDao ud;

    @Override
    public void getHello() {
        System.out.println("=================");
        ud.hello();
        System.out.println("=================");
        System.out.println("get hello");
    }

    public UserDao getUd() {
        return ud;
    }

    public void setUd(UserDao ud) {
        this.ud = ud;
    }
}
